<!-- WEB CONTENT -->
<div id="container_content">
    <div id="ad_main_name">
        <h2><?php echo 'Parts Ad #'.$data->adv_id.' '.$data->make.' '.$data->model;?></h2>
    </div>
    <div id="images_contact_left">
        <div id="main_ad_image">
            <a href="<?php echo (!empty($data->picture1) ? $data->picture1.'" data-lightbox="pics"' : '#"');?> title="Picture 1">
            <img src="<?php echo $data->picture1;?>" alt="No picture uploaded">
            </a>
        </div>
        <div class="small_ad_images">
            <div class="small_ad_image">
                <a href="<?php echo (!empty($data->picture2) ? $data->picture2.'" data-lightbox="pics"' : '#"');?> title="Picture 2">
                <img src="<?php echo $data->picture2;?>" alt="No picture uploaded">
                </a>
            </div>
            <div class="small_ad_image">
                <a href="<?php echo (!empty($data->picture3) ? $data->picture3.'" data-lightbox="pics"' : '#"');?> title="Picture 3">
                <img src="<?php echo $data->picture3;?>" alt="No picture uploaded">
                </a>
            </div>
            <div class="small_ad_image">
                <a href="<?php echo (!empty($data->picture4) ? $data->picture4.'" data-lightbox="pics"' : '#"');?> title="Picture 4">
                <img src="<?php echo $data->picture4;?>" alt="No picture uploaded">
                </a>
            </div>
            <div class="small_ad_image">
                <a href="<?php echo (!empty($data->picture5) ? $data->picture5.'" data-lightbox="pics"' : '#"');?> title="Picture 5">
                <img src="<?php echo $data->picture5;?>" alt="No picture uploaded">
                </a>
            </div>
        </div>
        <div class="small_ad_images">
            <div class="small_ad_image">
                <a href="<?php echo (!empty($data->picture6) ? $data->picture6.'" data-lightbox="pics"' : '#"');?> title="Picture 6">
                <img src="<?php echo $data->picture6;?>" alt="No picture uploaded">
                </a>
            </div>
            <div class="small_ad_image">
                <a href="<?php echo (!empty($data->picture7) ? $data->picture7.'" data-lightbox="pics"' : '#"');?> title="Picture 7">
                <img src="<?php echo $data->picture7;?>" alt="No picture uploaded">
                </a>
            </div>
            <div class="small_ad_image">
                <a href="<?php echo (!empty($data->picture8) ? $data->picture8.'" data-lightbox="pics"' : '#"');?> title="Picture 8">
                <img src="<?php echo $data->picture8;?>" alt="No picture uploaded">
                </a>
            </div>
            <div class="small_ad_image">
                <a href="<?php echo (!empty($data->picture9) ? $data->picture9.'" data-lightbox="pics"' : '#"');?> title="Picture 9">
                <img src="<?php echo $data->picture9;?>" alt="No picture uploaded">
                </a>
            </div>
        </div>
        <div id="ad_contact_form">
            <div id="contact_seller">
                <h2>Seller Contacts</h2>
                <div id="for_contact">
                    <div class="for_contact_with_phone contact_with_phone_email_not_selected">
                        Phone Details
                    </div>
                    <div class="send_email">
                        Contact Form
                    </div>
                </div>
            </div>
            <div id="contact_form_seller">
                <form method="POST" action="">
                    <div id="ask_the_seller">
                        <h2>Ask the Seller</h2>
                        <label for="ask_text"></label><textarea name="ask_text" id="ask_text"></textarea>
                    </div>
                    <div id="name_email_seller_holder">
                        <div class="name_email_seller">
                            <h2>Name*</h2>
                            <label for="ask_name"><input type="text" name="ask_name" id="ask_name" />
                        </div>
                        <div class="name_email_seller">
                            <h2>Email*</h2>
                            <label for="ask_email"><input type="text" name="ask_email" id="ask_email" />
                        </div>
                        <div class="name_email_seller" id="phone_margin">
                            <h2>Phone</h2>
                            <label for="ask_phone"><input type="text" name="ask_phone" id="ask_phone" />
                        </div>
                    </div>
                    <div id="send_to_seller">
                        <input type="image" src="img/send_to_seller.png">
                    </div>
                </form>
            </div>
            <div id="contact_phone_dealer">
                <div id="general_info">
                    <ul>
                        <li><?php echo $data->seller_data['username'];?></li
                        <li><div id="company_logo_properties"><img src="<?php echo $data->seller_data['company_logo'];?>" alt=""></div></li>
                        <li><?php echo $data->seller_data['city'];?></li>
                        <li><?php echo $data->seller_data['state'];?></li>
                    </ul>
                </div>
                <div id="phone1">
                    <ul>
                        <li><?php echo $data->seller_data['phone'];?></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div id="car_info_right">
        <div id="ad_car_price">
            <h3><?php echo 'Parts Ad #'.$data->adv_id.' '.$data->make.' '.$data->model; ?></h3>
            <h4><?php echo ($_SESSION['is_logged'] ? $_SESSION['user_data']['currency'].number_format($data->price *
                    $_SESSION['user_data']['currency_rate'], 0, ".", " ") : '₦ '.number_format($data->price, 0, ".", " "));?></h4>
        </div>
        <div id="car_statistics_holder">
            <div class="statistics">
                <ul>
                    <li id="date_of_car_img"><?php echo ($data->year ? $data->year : "N/A");?></li>
                    <li id="new_or_used_part_img"><?php echo ($data->year > 2011 ? 'New' : 'Old') ?></li>
                </ul>
            </div>
        </div>
        <div id="vehichle_information_holder">
            <h2>Part Information</h2>
            <div id="vehicle_information">
                <div id="vehicle_informaton_text"><?php echo nl2br($data->description);?></div>
            </div>
        </div>
    </div>
</div>